/*
 * base_scenenode.h
 *
 *  Created on: 29.08.2012
 *      Author: caffeine
 */

#ifndef BASE_SCENENODE_H_
#define BASE_SCENENODE_H_

#include <irrlicht.h>
#include <xml/IXmlNode.h>
#include <StringUtils.h>

extern "C" IRRLICHT_API void IRRCALLCONV readBaseSceneNodeTags(irr::scene::ISceneNode*e,irr::xml::IXmlNode*node){
	e->setID(irr::str::makeID(node->getAttString("id","-1")));
	e->setPosition(node->getAttVec3F("position",0,0,0));
	e->setScale(node->getAttVec3F("scale",1,1,1));
	e->setRotation(node->getAttVec3F("rotation",0,0,0));
}


#endif /* BASE_SCENENODE_H_ */
